﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Sern.ServiceHost.Tracker;

namespace TrackerService
{
    class Program
    {
        static void Main(string[] args)
        {
#if DEBUG
            Console.WriteLine("Attach your debugger and hit enter to continue.");
            Console.ReadLine();
#endif

            using (TrackerHostFactory.CreateListener(new TrackerConfiguration
                {
                    HostName = "localhost",
                    TrackerDbConnectionString = @"metadata=res://*/TrackerDefinition.Data.TrackerEntity.csdl|res://*/TrackerDefinition.Data.TrackerEntity.ssdl|res://*/TrackerDefinition.Data.TrackerEntity.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=tcp:rovf3lc9sw.database.windows.net,1433;initial catalog=Sern.Tracker;user id=st_clouds@rovf3lc9sw;password=p@55w0rd;multipleactiveresultsets=True;application name=EntityFramework&quot;"
                }))
            {
                Console.WriteLine("Services started, hit enter to close");
                Console.ReadLine();
            }
        }
    }
}
